package com.stone.stoneanswer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stone.stoneanswer.model.dto.comment.CommentAddRequest;
import com.stone.stoneanswer.model.entity.Comment;
import com.stone.stoneanswer.model.entity.User;
import com.stone.stoneanswer.model.vo.CommentVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 35431
* @description 针对表【post_comment(评论表)】的数据库操作Service
* @createDate 2025-03-27 10:02:50
*/
public interface CommentService extends IService<Comment> {

    List<CommentVO> getCommentByTypeAndId(Long itemId , Integer itemType , HttpServletRequest request);

    Long addComment(CommentAddRequest CommentAddRequest,Integer itemType, HttpServletRequest request);

    int doCommentThumb(Long commentId, User loginUser);
}
